
public class RepeatedSeparator implements LineCountSeparator {
	private int lines;
	private String str;
	
	public RepeatedSeparator(String str) {
		this.str = str;
	}
	
	/**
	 * lines >= 0
	 * @param lines the number of lines 
	 */
	public void setLineCount(int lines) {
		this.lines = lines;
	}
	
	public void print() {
		System.out.println();
		for(int i = 0;i < lines;i++)
			System.out.println(str);
		System.out.println();
	}
}
